package com.shop2cn.iapi.agentproducts.parameter;
import com.shop2cn.iapi.agentproducts.parameter.rebate.ConditionRebateValueDto;
import com.ymt.base.BaseBean;
import java.math.BigDecimal;
import java.util.List;
/**
*修改返佣条件Bean
*FreeMaker Template自动生成代码
*/
public class EditConditionRebateBean extends BaseBean{
 
	/**返佣条件编号*/
	private Integer conditionRebateId;
  	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#conditionRebateId
	 */
	public Integer getConditionRebateId(){
 
		return conditionRebateId;
 
	}
 	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#conditionRebateId
	 */
	public void setConditionRebateId(Integer conditionRebateId){
 
		this.conditionRebateId = conditionRebateId;
 
	}
	/**用户id*/
	private Integer userId;
  	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#userId
	 */
	public Integer getUserId(){
 
		return userId;
 
	}
 	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#userId
	 */
	public void setUserId(Integer userId){
 
		this.userId = userId;
 
	}
	/**品牌列表*/
	private List<Integer> brandIdList;
  	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#brandIdList
	 */
	public List<Integer> getBrandIdList(){
 
		return brandIdList;
 
	}
 	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#brandIdList
	 */
	public void setBrandIdList(List<Integer> brandIdList){
 
		this.brandIdList = brandIdList;
 
	}
	/**一级类目列表*/
	private List<Integer> firstCategoryIdList;
  	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#firstCategoryIdList
	 */
	public List<Integer> getFirstCategoryIdList(){
 
		return firstCategoryIdList;
 
	}
 	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#firstCategoryIdList
	 */
	public void setFirstCategoryIdList(List<Integer> firstCategoryIdList){
 
		this.firstCategoryIdList = firstCategoryIdList;
 
	}
	/**分仓列表*/
	private List<Integer> depotIdList;
  	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#depotIdList
	 */
	public List<Integer> getDepotIdList(){
 
		return depotIdList;
 
	}
 	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#depotIdList
	 */
	public void setDepotIdList(List<Integer> depotIdList){
 
		this.depotIdList = depotIdList;
 
	}
	/**条件佣金值列表*/
	private List<ConditionRebateValueDto> catalogRebateList;
  	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#catalogRebateList
	 */
	public List<ConditionRebateValueDto> getCatalogRebateList(){
 
		return catalogRebateList;
 
	}
 	/**
	 * @see com.shop2cn.iapi.agentproducts.parameter.EditConditionRebateBean#catalogRebateList
	 */
	public void setCatalogRebateList(List<ConditionRebateValueDto> catalogRebateList){
 
		this.catalogRebateList = catalogRebateList;
 
	}
	
	
	
	public String getFirstCategoryIddatabase(){
		if(firstCategoryIdList==null || firstCategoryIdList.size()==0){
			return "";
		}
		if(firstCategoryIdList.size()==1){
			return firstCategoryIdList.get(0)+"";
		}
		String string = firstCategoryIdList.toString();
		return string.substring(1,string.length()-1).replaceAll(" ","");
	}
	
	public String getBrandIddatabase(){
		if(brandIdList==null || brandIdList.size()==0){
			return "";
		}
		if(brandIdList.size()==1){
			return brandIdList.get(0)+"";
		}
		String string = brandIdList.toString();
		return string.substring(1,string.length()-1).replaceAll(" ","");
	}
	
	public String getDepotIddatabase(){
		if(depotIdList==null || depotIdList.size()==0){
			return "";
		}
		if(depotIdList.size()==1){
			return depotIdList.get(0)+"";
		}
		String string = depotIdList.toString();
		return string.substring(1,string.length()-1).replaceAll(" ","");
	}
	
	
}
